import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import Vant from "vant";
import "vant/lib/index.css";

Vue.use(Vant);
Vue.config.productionTip = false;

//过滤图片地址
Vue.filter("dalImg", (url) => {
  if (url) {
    //以url开头包含http
    if (url.startsWith("http")) {
      return url;
    }
    return "http://localhost:1337" + url;
  }
  return "http://oss.penkuoer.com/uPic/ss.jpeg";
});
new Vue({
  router,
  render: (h) => h(App),
}).$mount("#app");
